package br.mikhas.db.serdes;


/**
 * Interface which defines the responsibility to serialize a model into an array
 * of bytes.
 * 
 * @author Mikhail Domanoski
 * 
 */
public interface Serializer<T> {
	/**
	 * Serializes an Object and write it bytes on a {@link SerializationOutput}.
	 * 
	 * @param object
	 *            The object to be serialized
	 * @param output
	 *            The {@link SerializationOutput} to write the serialized object
	 */
	public void serialize(T object, SerializationOutput output);

}
